#include <stdio.h>
#include <malloc.h>
#include <stdbool.h>

struct ListNode* FindKthToTail(struct ListNode* pListHead, int k) {
    // write code here
    int sum = 0;
    struct ListNode* temp = pListHead;
    while (temp)
    {
        sum++;
        temp = temp->next;
    }
    if (k > sum)
        return NULL;
    int i = 0;
    temp = pListHead;
    for (i = 0; i < (sum - k); i++)
    {
        temp = temp->next;
    }
    return temp;
}
int main()
{
   
    return 0;
}
